class CreateQuestionTexts < ActiveRecord::Migration

  def self.up
    create_table :question_texts do |t|
      t.string :kind, :limit => 6
      t.string :text, :limit => 200
      t.references :question
    end
    remove_column :questions, :name
  end

  def self.down
    drop_table :question_texts
    add_column :questions, :name, :string, :limit => 200
  end

end
